package org.grow.stable.security.dao;
import org.grow.stable.security.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;


@Repository
public interface UserDao extends JpaRepository<User,String>  {
    User findByUsername(String username);

    @Transactional
    void deleteByUsername(String username);



}
